{% extends 'base.html' %}

{% block title %}删除课程{% endblock %}

{% block content %}
<div class="container mt-4">
    <div class="card">
        <div class="card-header">
            <h2>删除课程</h2>
        </div>
        <div class="card-body">
            <p>确定要删除课程 <strong>{{ class_schedule.class_info.name }} - {{ class_schedule.teacher_subject.subject.name }}</strong> 吗？</p>
            <p>星期: {{ class_schedule.get_day_of_week_display }}</p>
            <p>时间: {{ class_schedule.start_time }} - {{ class_schedule.end_time }}</p>
            <form method="post">
                {% csrf_token %}
                <button type="submit" class="btn btn-danger">确认删除</button>
                <a href="{% url 'core:class_schedule_detail' class_schedule.id %}" class="btn btn-secondary">取消</a>
            </form>
        </div>
    </div>
</div>
{% endblock %}